Author Topic: .sdw files ??  (Read 3253 times)

0 Members and 1 Guest are viewing this topic.

PHX cadie

  • Water Moccasin
  • Posts: 1902
.sdw files ??
« on: August 22, 2016, 07:15:02 PM »
I have topo of a city and 3 sid image files for backgrounds.
From what I've found sdw files will scale/twist/rotate the image to geo ref position but from reading it seems to be GIS. The little I know sounds like a tfw file.
I have files;

blahblah.aux
blahblah.sdw
blahblah.sid
blahblah.sid.aux.xml  (????????)
blahblah.sid.xml        (?????????)


Is there a way to scale/twist/rotate/mutilate these images into position with vanilla cadd, (or MS XM)?

Thxs Again!!
Acad 2013 and XM
Back when High Tech meant you had an adjustable triangle

ronjonp

  • Needs a day job
  • Posts: 7526
Re: .sdw files ??
« Reply #1 on: August 22, 2016, 08:12:02 PM »
Give this a try. Could modify for Mr Sid in the morning.
https://www.theswamp.org/index.php?topic=8904.msg114258#msg114258


*Code updated.
« Last Edit: August 23, 2016, 09:08:11 AM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

PHX cadie

  • Water Moccasin
  • Posts: 1902
Re: .sdw files ??
« Reply #2 on: August 23, 2016, 10:12:33 AM »
Don't know why the download count says 0, I know I downloaded ur lsp, and have used it :)

if you have the time I'd be in your debt..............again. Would it read the sdw file?

(I'm assuming that's the file that places the image, formatted the same as a tfw)

blahblah1of3:

             0.250000000000000
             0.000000000000000
             0.000000000000000
            -0.250000000000000
        510650.125000000000000
       1306799.875000000000000

I believe 2 #'s are the x and y placement, but none of the other 3 #'s cant be scale factors
This would be a massive help in having a ready to use background for a city. I have a gold mine of files to piece together (2500), just need 2 know the pieces

Thxs

reread post, better understanding of the code

Quote from: wikipedia

Definition
Graphical view of world files parameters and computed values of the four first upper left pixels of an image.
World files do not specify a coordinate system; this information is generally stored somewhere else in the raster file itself or in another companion file. The generic meaning of world file parameters are:
Line 1: A: pixel size in the x-direction in map units/pixel
Line 2: D: rotation about y-axis
Line 3: B: rotation about x-axis
Line 4: E: pixel size in the y-direction in map units, almost always negative[3]
Line 5: C: x-coordinate of the center of the upper left pixel
Line 6: F: y-coordinate of the center of the upper left pixel


if all the code is the same can I just change the file extention to .tfw  ?    :whistling:
« Last Edit: August 23, 2016, 10:20:56 AM by PHX cadie »
Acad 2013 and XM
Back when High Tech meant you had an adjustable triangle

ronjonp

  • Needs a day job
  • Posts: 7526
Re: .sdw files ??
« Reply #3 on: August 23, 2016, 10:17:50 AM »
I updated the code to scale Mr Sid files.
You have to first insert your images into the drawing then select them with the code. If the *.sid file & *.sdw files are in the same directory AND have the same name, the code will automagically read the file.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

PHX cadie

  • Water Moccasin
  • Posts: 1902
Re: .sdw files ??
« Reply #4 on: August 23, 2016, 11:23:41 AM »
I get;

TFW file NOT found or not correctly formatted!

when blahblah1of3 reads;

blahblah1of3:

             0.250000000000000
             0.000000000000000
             0.000000000000000
            -0.250000000000000
        510650.125000000000000
       1306799.875000000000000
did download;
https://www.theswamp.org/index.php?topic=8904.msg114258#msg114258

any ideas what Im doing wrong?
Acad 2013 and XM
Back when High Tech meant you had an adjustable triangle

ronjonp

  • Needs a day job
  • Posts: 7526
Re: .sdw files ??
« Reply #5 on: August 23, 2016, 11:28:40 AM »
Post your SDW file.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

PHX cadie

  • Water Moccasin
  • Posts: 1902
Re: .sdw files ??
« Reply #6 on: August 23, 2016, 11:31:50 AM »
attached
Acad 2013 and XM
Back when High Tech meant you had an adjustable triangle

ronjonp

  • Needs a day job
  • Posts: 7526
Re: .sdw files ??
« Reply #7 on: August 23, 2016, 11:44:29 AM »
Just tested here & it works fine?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

PHX cadie

  • Water Moccasin
  • Posts: 1902
Re: .sdw files ??
« Reply #8 on: August 23, 2016, 12:08:01 PM »
downloaded tfw.lsp from

https://www.theswamp.org/index.php?topic=8904.msg114258#msg114258

have dwg1 open with image inserted/load tfw.lsp

Command: _appload tfw.lsp successfully loaded.
Command:
Command:
Command: TFW
Image World File [ReadIt/WriteIt] <ReadIt>:
Select image(s):
Select objects: 1 found
Select objects:
TFW file NOT found or not correctly formatted!
Command:

sid and sdw files have the same name and in the same folder
sorry to be pain

did I download the wrong lsp?
« Last Edit: August 23, 2016, 12:16:05 PM by PHX cadie »
Acad 2013 and XM
Back when High Tech meant you had an adjustable triangle

ronjonp

  • Needs a day job
  • Posts: 7526
Re: .sdw files ??
« Reply #9 on: August 23, 2016, 12:50:01 PM »
I can take a closer look in a while ... need to get a project out.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

PHX cadie

  • Water Moccasin
  • Posts: 1902
Re: .sdw files ??
« Reply #10 on: August 23, 2016, 03:33:47 PM »
no rush, this will prob be a never ending project :)
Acad 2013 and XM
Back when High Tech meant you had an adjustable triangle